﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using FreeSql.DataAnnotations;

namespace tcm.entity.Device
{
    //药品进出记录表
    [Table(Name = "tcm_phm_log")]
    public class PhmLog:BaseEntity
    {

        //  `phm_id` bigint(64) DEFAULT NULL COMMENT '药品处方单id',
        public long phm_list_id { get; set; }

        //  `phm_id` bigint(64) DEFAULT NULL COMMENT '药柜id',
        public long cabinet_id { get; set; }

        //用途说明
        public string instructions { get; set; }

        //  `num` int (11) DEFAULT NULL COMMENT '数量',
        public int num { get; set; }

        //   `phm_use` int (11) DEFAULT NULL COMMENT '药品去向：1 进库 2 出库 3 销毁',
        public int phm_use { get; set; }


    }

    public class PhmLogSelect: PhmLog
    {
        public string phm_list_name { get; set; }

        public string site_name { get; set; }

        public long? site_id { get; set; }

        public string cabinet_no { get; set; }

        public List<PharmaceuticalInfo> pharmaceuticals { get; set; } = new List<PharmaceuticalInfo>();
    }


    public class PharmaceuticalInfo:Pharmaceutical
    {
        public long phm_num { get; set; }
        public long phm_list_id { get; set; }
        public long phm_total { get; set; }
    }


}
